package com.talos.ums.controller.admin.socialuser.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 社交用户表 Response VO")
@Data
@ExcelIgnoreUnannotated
public class UmsSocialUserRespVO {

    @Schema(description = "主键(自增策略)", requiredMode = Schema.RequiredMode.REQUIRED, example = "21256")
    @ExcelProperty("主键(自增策略)")
    private Long id;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2199")
    @ExcelProperty("用户编号")
    private Long userId;

    @Schema(description = "用户类型", example = "1")
    @ExcelProperty("用户类型")
    private Integer userType;

    @Schema(description = "社交平台的类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("社交平台的类型")
    private Integer type;

    @Schema(description = "社交 openid", requiredMode = Schema.RequiredMode.REQUIRED, example = "13174")
    @ExcelProperty("社交 openid")
    private String openid;

    @Schema(description = "平台 unionId", example = "1967")
    @ExcelProperty("平台 unionId")
    private String unionId;

    @Schema(description = "社交 token")
    @ExcelProperty("社交 token")
    private String token;

    @Schema(description = "原始 Token 数据，一般是 JSON 格式")
    @ExcelProperty("原始 Token 数据，一般是 JSON 格式")
    private String rawTokenInfo;

    @Schema(description = "用户昵称", example = "芋艿")
    @ExcelProperty("用户昵称")
    private String nickname;

    @Schema(description = "用户头像")
    @ExcelProperty("用户头像")
    private String avatar;

    @Schema(description = "原始用户数据，一般是 JSON 格式")
    @ExcelProperty("原始用户数据，一般是 JSON 格式")
    private String rawUserInfo;

    @Schema(description = "最后一次的认证 code")
    @ExcelProperty("最后一次的认证 code")
    private String code;

    @Schema(description = "最后一次的认证 state")
    @ExcelProperty("最后一次的认证 state")
    private String state;

    @Schema(description = "创建者")
    @ExcelProperty("创建者")
    private String creatorCode;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新者")
    @ExcelProperty("更新者")
    private String modifierCode;

    @Schema(description = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("更新时间")
    private LocalDateTime modifyTime;

    @Schema(description = "是否删除", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("是否删除")
    private Integer deleted;

    @Schema(description = "租户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "10189")
    @ExcelProperty("租户id")
    private Long tenantId;

}
